cmake_minimum_required(VERSION 3.10)
project(TestDisconnectLogger)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 查找Qt5
find_package(Qt5 REQUIRED COMPONENTS Core)

# 包含目录
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

# 源文件
set(SOURCES
    test_disconnect_logger.cpp
    network/DisconnectLogger.cpp
)

# 头文件
set(HEADERS
    network/DisconnectLogger.h
)

# 创建可执行文件
add_executable(TestDisconnectLogger ${SOURCES} ${HEADERS})

# 链接Qt库
target_link_libraries(TestDisconnectLogger Qt5::Core)